﻿using System;
using System.ComponentModel.DataAnnotations;
using Epam.PeopleInterfaces;

namespace Epam.PeopleRepository
{
    public class DtoPeopleEntity:IDtoPeopleEntity
    {
        [Key]
        public Guid Id { get; set; }

        [RegularExpression("[0-9a-zA-Z -]{1,50}", ErrorMessage = "Invalid name")]
        public string Name { get; set; }

        [DataType(DataType.DateTime, ErrorMessage = "Ivalid birdthday")]
        public DateTime BirthDate { get; set; }

        public double Weight { get; set; }

        public double Height { get; set; }
    }
}
